import myAxios from '@/utils/request'

// 获取全部分类数据
export const getCategoryData = () => myAxios.get('/category/list')

// 获取详情数据
export const detail = (id) => myAxios({
  url: '/goods/detail',
  params: {
    goodsId: id
  }
})

// 获取评论列表
export const getListRows = (id) => myAxios({
  url: '/comment/listRows',
  params: {
    goodsId: id,
    limit: 5
  }
})
